package com.oa.hyperion.service.impl;

import com.oa.hyperion.entity.Perm;
import com.oa.hyperion.repository.RolePermMapper;
import com.oa.hyperion.service.RolePermService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Liu
 * @date 2022年01月19日 10:31
 */
@Service
public class RolePermServiceImpl implements RolePermService {
    private final RolePermMapper rolePermMapper;

    public RolePermServiceImpl(RolePermMapper rolePermMapper) {
        this.rolePermMapper = rolePermMapper;
    }

    @Override
    public List<Perm> findPermByRole(int id) {
        return rolePermMapper.findPermByRole(id);
    }
}
